<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加商家分类</title>
<!--{ include file="header.html" }-->
<script language="javascript">
function chkAddForm(){
	var cname = $('#SellerClassName').val();
	if(!cname){
		alert('请完整资料！');
		return false;
	}
}
</script>
</head>

<body>
<div align="right"><input type="button" name="addnewseller" value="分类列表" onclick="javascript:window.location.href='./index.php?module=seller&act=cate';" /></div><br/>
<form name="form_seller_cate_add" method="post" action="./index.php?module=seller&act=cate" enctype="multipart/form-data" onSubmit="return chkAddForm();">
<table width="100%"  border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#0066FF">
  <tr bgcolor="#96d6f8">
    <td height="20" colspan="2">&nbsp;添加商家分类</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="30%" height="20" align="right" bgcolor="#FFFFFF">上一级分类：</td>
    <td>
	<select name="SellerClassOwner" id="SellerClassOwner">
	<option value="0">--顶级分类--</option>
	<!--{foreach name=cates from=$cates item=pcate}-->
	<option value="<!--{$pcate.SellerClassID}-->" <!--{if $pcate.SellerClassID == $cate.SellerClassID}--> selected <!--{/if}--> >
	<!--{$pcate.SellerClassName}-->
	</option>
	<!--{/foreach}-->
	</select>
	</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="30%" height="20" align="right" bgcolor="#FFFFFF">分类名：</td>
    <td><input name="SellerClassName" type="text" id="SellerClassName" value="<!--{ $cate.SellerClassName }-->"></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="30%" height="20" align="right" bgcolor="#FFFFFF">商家发布奖励：</td>
    <td><input name="SellerCreateMoney" type="text" id="SellerCreateMoney" value="<!--{ $cate.SellerCreateMoney }-->"></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="30%" height="20" align="right" bgcolor="#FFFFFF">发布图片奖励：</td>
    <td><input name="SellerPicMoney" type="text" id="SellerPicMoney" value="<!--{ $cate.SellerPicMoney }-->"></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="30%" height="20" align="right" bgcolor="#FFFFFF">评分奖励：</td>
    <td><input name="SellerGradeMoney" type="text" id="SellerGradeMoney" value="<!--{ $cate.SellerGradeMoney }-->"></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="30%" height="20" align="right" bgcolor="#FFFFFF">信息奖励：</td>
    <td><input name="SellerMsgMoney" type="text" id="SellerMsgMoney" value="<!--{ $cate.SellerMsgMoney }-->"></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td height="20" bgcolor="#FFFFFF">&nbsp;</td>
    <td><input type="submit" name="Submit" value="提交">
      <input type="reset" name="Submit" value="重置">
      <input type="hidden" name="step" value="do_add">
      </td>
  </tr>

</table>
</form>
</body>
</html>